package com.zyb.beiojclientsdk;

import com.zyb.beiojclientsdk.client.BeiojCodeSandboxClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author 十八岁讨厌编程
 * @date 2025/3/15 23:00
 * @PROJECT_NAME beioj-backend
 * @description
 */

@Data
@Configuration
@ConfigurationProperties("beioj.client")
public class BeiojApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public BeiojCodeSandboxClient beiojCodeSandboxClient(){
        return new BeiojCodeSandboxClient(accessKey,secretKey);
    }
}
